home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_tem_tiki2cave.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  66 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEM_Tiki2Cave.cog
  4. #
  5. # [TRM]
  6. #
  7. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9.  
  10. symbols        
  11.     
  12.     message     startup
  13.     message     entered
  14.  
  15.     thing       player      local
  16.     thing       caveCam
  17.     thing       caveTarg
  18.     thing       teleTarget
  19.  
  20.     sector      slide
  21.     sector      ledge
  22.     
  23.     vector      look
  24.     
  25. end
  26.  
  27. # ========================================================================================
  28.  
  29. code
  30.  
  31. startup:
  32.  
  33.     player = GetLocalPlayerThing();
  34.     return;
  35.     
  36. # ========================================================================================
  37.  
  38. entered:
  39.  
  40.     if(GetSenderRef() == slide)
  41.     {
  42.         Sleep(1.0);
  43.         
  44.         # switch to caveCam
  45.         SetCameraFocus(2, caveCam);
  46.         SetCameraSecondaryFocus(2, caveTarg);
  47.         SetCurrentCamera(2);
  48.         SetCameraFOV(90, 0, 0.0);
  49.         
  50.         TeleportThing(player, teleTarget);
  51.         SetThingLook(player, look);
  52.     }
  53.     
  54.     if(GetSenderRef() == ledge)
  55.     {
  56.         Sleep(2.0);
  57.         SetCurrentCamera(1);
  58.     }
  59.  
  60.     return;
  61.  
  62. # ========================================================================================
  63.     
  64. end
  65.  
  66.